Skip to content

Update eta-expansion-spec.md #5805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2019
Merged

Update eta-expansion-spec.md #5805

merged 1 commit into from
Jan 30, 2019

Conversation

adriaanm
Copy link
Contributor

No description provided.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@adriaanm
Copy link
Contributor Author

I've always wondered about nullary versus 0-ary. My logic, ignoring this, is (since we can have multiple argument lists, I included a list of arities to further illustrate):

  • def m(x: Any, y: Any) is binary / 2-ary (List(2))
  • def m(x: Any) is unary / 1-ary, and (List(1))
  • def m() is zero-ary / 0-ary. (List(0))
  • def m is null-ary (Nil)

No? 🤔

@odersky
Copy link
Contributor

odersky commented Jan 28, 2019

I tend to say "parameterless" for def m.

@biboudis biboudis self-assigned this Jan 30, 2019
@biboudis
Copy link
Contributor

biboudis commented Jan 30, 2019

@adriaanm if you don't have more additions, I can merge

(maybe we can include the list you wrote somewhere in that documentation page for reference?)

@adriaanm
Copy link
Contributor Author

adriaanm commented Jan 30, 2019

for me this is good to merge, i guess people (the target audience of this page) don't care too much about my thinking on the naming :-)

@biboudis biboudis merged commit ce0f527 into scala:master Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants